<?php include_once("../config.php"); ?>
 

<?


//file_get_contents抓取https地址内容
function getCurl($url)
{
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
    $result = curl_exec($ch);
    curl_close($ch);
    return $result;
}


 

//开始逐个网址访问，获取最新的代码，对比上一次的代码
 
 
 
    $_now_source=getCurl("http://www.chusesign.com"); 
	
	print_r($_now_source);
	echo $_now_source;
	
	    echo $_now_source=file_get_contents("http://www.chusesign.com");
	print_r($_now_source);
	echo $_now_source;
 
exit;


 
 

 ?>

 